package com.chixing.day16.AOP_Proxy;

public class ProductServiceImpl implements ProductService {

    //耦合性高
    @Override
    public void save() {
        System.out.println("save"); //核心业务
        new LogUtil().addLog(); //非核心业务(服务型业务)
    }

    @Override
    public void update() {
        System.out.println("update");
        new LogUtil().addLog();
    }

    @Override
    public void delete() {
        System.out.println("delete");
        new LogUtil().addLog();
    }

    @Override
    public void getById() {
        System.out.println("select");
        new LogUtil().addLog();
    }


}
